package com.glodon.paas.document.storage.model;

public class NodeAssoc {
    private String id;
    private Node parent;
    private Node child;
    private String name;

    public NodeAssoc(String id, String parentId, String childId, String name) {
        this.id = id;
        this.parent = new Node();
        parent.setId(parentId);
        this.child = new Node();
        child.setId(childId);
        this.name = name;

    }

    public NodeAssoc() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Node getParent() {
        return parent;
    }

    public void setParent(Node parent) {
        this.parent = parent;
    }

    public Node getChild() {
        return child;
    }

    public void setChild(Node child) {
        this.child = child;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
